<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="spring" uri="http://www.springframework.org/tags/form" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
	<h3>This data is:${data}</h3>
	<c:forEach items="${stocks}" var="stock">
		<p>
		ID:${stock.id} StockCode:${stock.code} StockName:${stock.name}
		</p>
	</c:forEach>
	ID:${stockId.id} StockCode:${stockId.code} StockName:${stockId.name}
	<p>----------------------------------------------------------------</p>
	<p>Create Stock</p>
	<spring:form action="create" commandName="stock">
		name of stock:<spring:input path="name" /><br>
		code of stock:<spring:input path="code" /><br>
		<input type="submit" value="submit"></input>
	</spring:form>
	<p style="color:blue;">${message}</p>
</body>
</html>